package cn.vconinfo.lims.delivery.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class SpecimenRegisterResultExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public SpecimenRegisterResultExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andSpecimenResultIdIsNull() {
            addCriterion("specimen_result_id is null");
            return (Criteria) this;
        }

        public Criteria andSpecimenResultIdIsNotNull() {
            addCriterion("specimen_result_id is not null");
            return (Criteria) this;
        }

        public Criteria andSpecimenResultIdEqualTo(Long value) {
            addCriterion("specimen_result_id =", value, "specimenResultId");
            return (Criteria) this;
        }

        public Criteria andSpecimenResultIdNotEqualTo(Long value) {
            addCriterion("specimen_result_id <>", value, "specimenResultId");
            return (Criteria) this;
        }

        public Criteria andSpecimenResultIdGreaterThan(Long value) {
            addCriterion("specimen_result_id >", value, "specimenResultId");
            return (Criteria) this;
        }

        public Criteria andSpecimenResultIdGreaterThanOrEqualTo(Long value) {
            addCriterion("specimen_result_id >=", value, "specimenResultId");
            return (Criteria) this;
        }

        public Criteria andSpecimenResultIdLessThan(Long value) {
            addCriterion("specimen_result_id <", value, "specimenResultId");
            return (Criteria) this;
        }

        public Criteria andSpecimenResultIdLessThanOrEqualTo(Long value) {
            addCriterion("specimen_result_id <=", value, "specimenResultId");
            return (Criteria) this;
        }

        public Criteria andSpecimenResultIdIn(List<Long> values) {
            addCriterion("specimen_result_id in", values, "specimenResultId");
            return (Criteria) this;
        }

        public Criteria andSpecimenResultIdNotIn(List<Long> values) {
            addCriterion("specimen_result_id not in", values, "specimenResultId");
            return (Criteria) this;
        }

        public Criteria andSpecimenResultIdBetween(Long value1, Long value2) {
            addCriterion("specimen_result_id between", value1, value2, "specimenResultId");
            return (Criteria) this;
        }

        public Criteria andSpecimenResultIdNotBetween(Long value1, Long value2) {
            addCriterion("specimen_result_id not between", value1, value2, "specimenResultId");
            return (Criteria) this;
        }

        public Criteria andApplicationLinkIdIsNull() {
            addCriterion("application_link_id is null");
            return (Criteria) this;
        }

        public Criteria andApplicationLinkIdIsNotNull() {
            addCriterion("application_link_id is not null");
            return (Criteria) this;
        }

        public Criteria andApplicationLinkIdEqualTo(Long value) {
            addCriterion("application_link_id =", value, "applicationLinkId");
            return (Criteria) this;
        }

        public Criteria andApplicationLinkIdNotEqualTo(Long value) {
            addCriterion("application_link_id <>", value, "applicationLinkId");
            return (Criteria) this;
        }

        public Criteria andApplicationLinkIdGreaterThan(Long value) {
            addCriterion("application_link_id >", value, "applicationLinkId");
            return (Criteria) this;
        }

        public Criteria andApplicationLinkIdGreaterThanOrEqualTo(Long value) {
            addCriterion("application_link_id >=", value, "applicationLinkId");
            return (Criteria) this;
        }

        public Criteria andApplicationLinkIdLessThan(Long value) {
            addCriterion("application_link_id <", value, "applicationLinkId");
            return (Criteria) this;
        }

        public Criteria andApplicationLinkIdLessThanOrEqualTo(Long value) {
            addCriterion("application_link_id <=", value, "applicationLinkId");
            return (Criteria) this;
        }

        public Criteria andApplicationLinkIdIn(List<Long> values) {
            addCriterion("application_link_id in", values, "applicationLinkId");
            return (Criteria) this;
        }

        public Criteria andApplicationLinkIdNotIn(List<Long> values) {
            addCriterion("application_link_id not in", values, "applicationLinkId");
            return (Criteria) this;
        }

        public Criteria andApplicationLinkIdBetween(Long value1, Long value2) {
            addCriterion("application_link_id between", value1, value2, "applicationLinkId");
            return (Criteria) this;
        }

        public Criteria andApplicationLinkIdNotBetween(Long value1, Long value2) {
            addCriterion("application_link_id not between", value1, value2, "applicationLinkId");
            return (Criteria) this;
        }

        public Criteria andProjectIdIsNull() {
            addCriterion("project_id is null");
            return (Criteria) this;
        }

        public Criteria andProjectIdIsNotNull() {
            addCriterion("project_id is not null");
            return (Criteria) this;
        }

        public Criteria andProjectIdEqualTo(Long value) {
            addCriterion("project_id =", value, "projectId");
            return (Criteria) this;
        }

        public Criteria andProjectIdNotEqualTo(Long value) {
            addCriterion("project_id <>", value, "projectId");
            return (Criteria) this;
        }

        public Criteria andProjectIdGreaterThan(Long value) {
            addCriterion("project_id >", value, "projectId");
            return (Criteria) this;
        }

        public Criteria andProjectIdGreaterThanOrEqualTo(Long value) {
            addCriterion("project_id >=", value, "projectId");
            return (Criteria) this;
        }

        public Criteria andProjectIdLessThan(Long value) {
            addCriterion("project_id <", value, "projectId");
            return (Criteria) this;
        }

        public Criteria andProjectIdLessThanOrEqualTo(Long value) {
            addCriterion("project_id <=", value, "projectId");
            return (Criteria) this;
        }

        public Criteria andProjectIdIn(List<Long> values) {
            addCriterion("project_id in", values, "projectId");
            return (Criteria) this;
        }

        public Criteria andProjectIdNotIn(List<Long> values) {
            addCriterion("project_id not in", values, "projectId");
            return (Criteria) this;
        }

        public Criteria andProjectIdBetween(Long value1, Long value2) {
            addCriterion("project_id between", value1, value2, "projectId");
            return (Criteria) this;
        }

        public Criteria andProjectIdNotBetween(Long value1, Long value2) {
            addCriterion("project_id not between", value1, value2, "projectId");
            return (Criteria) this;
        }

        public Criteria andProjectValueIsNull() {
            addCriterion("project_value is null");
            return (Criteria) this;
        }

        public Criteria andProjectValueIsNotNull() {
            addCriterion("project_value is not null");
            return (Criteria) this;
        }

        public Criteria andProjectValueEqualTo(String value) {
            addCriterion("project_value =", value, "projectValue");
            return (Criteria) this;
        }

        public Criteria andProjectValueNotEqualTo(String value) {
            addCriterion("project_value <>", value, "projectValue");
            return (Criteria) this;
        }

        public Criteria andProjectValueGreaterThan(String value) {
            addCriterion("project_value >", value, "projectValue");
            return (Criteria) this;
        }

        public Criteria andProjectValueGreaterThanOrEqualTo(String value) {
            addCriterion("project_value >=", value, "projectValue");
            return (Criteria) this;
        }

        public Criteria andProjectValueLessThan(String value) {
            addCriterion("project_value <", value, "projectValue");
            return (Criteria) this;
        }

        public Criteria andProjectValueLessThanOrEqualTo(String value) {
            addCriterion("project_value <=", value, "projectValue");
            return (Criteria) this;
        }

        public Criteria andProjectValueLike(String value) {
            addCriterion("project_value like", value, "projectValue");
            return (Criteria) this;
        }

        public Criteria andProjectValueNotLike(String value) {
            addCriterion("project_value not like", value, "projectValue");
            return (Criteria) this;
        }

        public Criteria andProjectValueIn(List<String> values) {
            addCriterion("project_value in", values, "projectValue");
            return (Criteria) this;
        }

        public Criteria andProjectValueNotIn(List<String> values) {
            addCriterion("project_value not in", values, "projectValue");
            return (Criteria) this;
        }

        public Criteria andProjectValueBetween(String value1, String value2) {
            addCriterion("project_value between", value1, value2, "projectValue");
            return (Criteria) this;
        }

        public Criteria andProjectValueNotBetween(String value1, String value2) {
            addCriterion("project_value not between", value1, value2, "projectValue");
            return (Criteria) this;
        }

        public Criteria andDeviceGroupIdIsNull() {
            addCriterion("device_group_id is null");
            return (Criteria) this;
        }

        public Criteria andDeviceGroupIdIsNotNull() {
            addCriterion("device_group_id is not null");
            return (Criteria) this;
        }

        public Criteria andDeviceGroupIdEqualTo(Long value) {
            addCriterion("device_group_id =", value, "deviceGroupId");
            return (Criteria) this;
        }

        public Criteria andDeviceGroupIdNotEqualTo(Long value) {
            addCriterion("device_group_id <>", value, "deviceGroupId");
            return (Criteria) this;
        }

        public Criteria andDeviceGroupIdGreaterThan(Long value) {
            addCriterion("device_group_id >", value, "deviceGroupId");
            return (Criteria) this;
        }

        public Criteria andDeviceGroupIdGreaterThanOrEqualTo(Long value) {
            addCriterion("device_group_id >=", value, "deviceGroupId");
            return (Criteria) this;
        }

        public Criteria andDeviceGroupIdLessThan(Long value) {
            addCriterion("device_group_id <", value, "deviceGroupId");
            return (Criteria) this;
        }

        public Criteria andDeviceGroupIdLessThanOrEqualTo(Long value) {
            addCriterion("device_group_id <=", value, "deviceGroupId");
            return (Criteria) this;
        }

        public Criteria andDeviceGroupIdIn(List<Long> values) {
            addCriterion("device_group_id in", values, "deviceGroupId");
            return (Criteria) this;
        }

        public Criteria andDeviceGroupIdNotIn(List<Long> values) {
            addCriterion("device_group_id not in", values, "deviceGroupId");
            return (Criteria) this;
        }

        public Criteria andDeviceGroupIdBetween(Long value1, Long value2) {
            addCriterion("device_group_id between", value1, value2, "deviceGroupId");
            return (Criteria) this;
        }

        public Criteria andDeviceGroupIdNotBetween(Long value1, Long value2) {
            addCriterion("device_group_id not between", value1, value2, "deviceGroupId");
            return (Criteria) this;
        }

        public Criteria andRunTimeIsNull() {
            addCriterion("run_time is null");
            return (Criteria) this;
        }

        public Criteria andRunTimeIsNotNull() {
            addCriterion("run_time is not null");
            return (Criteria) this;
        }

        public Criteria andRunTimeEqualTo(Date value) {
            addCriterion("run_time =", value, "runTime");
            return (Criteria) this;
        }

        public Criteria andRunTimeNotEqualTo(Date value) {
            addCriterion("run_time <>", value, "runTime");
            return (Criteria) this;
        }

        public Criteria andRunTimeGreaterThan(Date value) {
            addCriterion("run_time >", value, "runTime");
            return (Criteria) this;
        }

        public Criteria andRunTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("run_time >=", value, "runTime");
            return (Criteria) this;
        }

        public Criteria andRunTimeLessThan(Date value) {
            addCriterion("run_time <", value, "runTime");
            return (Criteria) this;
        }

        public Criteria andRunTimeLessThanOrEqualTo(Date value) {
            addCriterion("run_time <=", value, "runTime");
            return (Criteria) this;
        }

        public Criteria andRunTimeIn(List<Date> values) {
            addCriterion("run_time in", values, "runTime");
            return (Criteria) this;
        }

        public Criteria andRunTimeNotIn(List<Date> values) {
            addCriterion("run_time not in", values, "runTime");
            return (Criteria) this;
        }

        public Criteria andRunTimeBetween(Date value1, Date value2) {
            addCriterion("run_time between", value1, value2, "runTime");
            return (Criteria) this;
        }

        public Criteria andRunTimeNotBetween(Date value1, Date value2) {
            addCriterion("run_time not between", value1, value2, "runTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("create_time =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("create_time <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("create_time >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("create_time >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("create_time <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("create_time <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("create_time in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("create_time not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("create_time between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("create_time not between", value1, value2, "createTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}